import os

if __name__ == '__main__':
    path = '/Users/victor/Desktop/photo'
    # path = '/Users/victor/Program/Python/Test/src/ins/buy_item_json_dump/images'
    count = 3610
    for file in os.listdir(path):
        if not file.startswith('.'):
            try:
                name = str(count) + " " + str(file)
                os.rename(os.path.join(path, file), os.path.join(path, name))
                print(name)
                count += 1
            except:
                pass

